class Storage {
  constructor(store = localStorage) {
    this.store = store;
  }
  getItem(key) {
    return this.store.getItem(key);
  }
  setItem(key, value) {
    this.store.setItem(key, value);
    return this;
  }
  removeItem(key) {
    this.store.removeItem(key);
    return this;
  }
  clear() {
    this.store.clear();
    return this;
  }
}
export default Storage;
